package gyw.spring.cloud.swagger;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 关彦武
 * @date 2020/6/9 17:51
 */
@RequestMapping("/demo")
@RestController
public class DemoController {

    @ApiOperation(value="测试例子",notes = "测试例子")
    @ApiImplicitParam()
    @RequestMapping( method = RequestMethod.GET)
    public String getMes(){
        return "测试例子";
    }
}
